package com.szrt.day20170415.ch01;

import static org.junit.Assert.*;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import org.junit.Test;

public class ABC {
	
	@Test
	public void testName() throws Exception {
		int aa=10;
		
		int bb=2;
		
		//不管 bb 取什么值  最终要出现  绿色的线条
		
		
		
		
		try{
			int cc = aa/bb;
			System.out.println(cc);
			System.out.println("程序正确运行...");
			return;
		}catch(ArithmeticException e){
			System.out.println("程序出异常啦...");
			System.out.println("0不能做分母");
		}finally{
			//死了都要执行
			System.out.println("最终执行的代码");
		}
		System.out.println("xxx");
		
	}

}
